derivative using the power rule